home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
tex
/
dvivga9.zip
/
RULEPXL.H
< prev
next >
Wrap
Text File
|
1988-05-30
|
627b
|
23 lines
/* -*-C-*- rulepxl.h */
/*-->rulepxl*/
/**********************************************************************/
/****************************** rulepxl *******************************/
/**********************************************************************/
COORDINATE
rulepxl(number, cnvfac)/* return number of pixels in a rule */
register UNSIGN32 number;/* in DVI units */
register float cnvfac; /* conversion factor */
{
register COORDINATE n;
n = (COORDINATE)(number*cnvfac);
if ((float)n < ((float)(number))*cnvfac)
return((COORDINATE)(n+1));
else
return((COORDINATE)n);
}